package com.fuang.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.fuang.service.DemoService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Fuang on 2018-2-24.
 */
@RestController
@RequestMapping("/test")
public class DubboTestController {
    @Reference(check = false)
    public DemoService demoService;

    @RequestMapping("/hello")
    public String hello(){
        return demoService.sayHello("dubbo-demob");
    }
}
